package com.chinackts.proceedspayment.importpayment.dto;

import com.alibaba.fastjson.JSONObject;
import org.springframework.util.CollectionUtils;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Lianhong
 * @since 2021/11/19
 */
public class ImportPaymentListDto {

    private int total;

    private List<JSONObject> rows = new ArrayList<>();

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<JSONObject> getRows() {
        return rows;
    }

    public void setRows(List<JSONObject> rows) {
        this.rows = rows;
    }

    public void addRows(List<JSONObject> rows) {
        if (CollectionUtils.isEmpty(rows)) return;
        this.rows.addAll(rows);
    }
}
